<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link rel="stylesheet" href="common/js/tree/tree.css" />
		<link rel="stylesheet" href="common/css/main.css" />
		<link rel="stylesheet" href="common/css/left.css" />
		<script type="text/javascript" src="common/js/jquery.js"></script>
		<script type="text/javascript" src="common/js/tree/tree.js"></script>
		<script type="text/javascript">
		$(document).ready(function(){
			iniMenuFunc('<s:property value="#session.userinfo['mainMenu'][0].functionid"/>','<s:property value="#session.userinfo['mainMenu'][0].title"/>');
		});
		var mainMenuCache = Array();
		var no_title = "";
		function iniMenuFunc(m_id,m_text){
			if($.inArray(m_id,mainMenuCache) == -1){
				mainMenuCache[mainMenuCache.length]=m_id;
				simpleTreeCollection = $('#simpleTree').simpleTree({
					animate:true,
					textHref:true,
					checkBox:false,
					dataType:"json",
					parm:{"functionDTO.functionid":m_id},
					treeName:m_text,
					hrefTarget:"mainFrame",
					url:"<%=request.getContextPath()%>/findTreeFunction!queryFunction.action"
				});
			}else{
				var obj = $('#t_'+m_id);
				obj.siblings().hide();
				obj.show();
			}
		}
	</script>
	</head>

	<body>
		<table width="90%" height="24" id="treeTable">
			<tr>
				<td >
					<div id="topDIV" >
						导航栏
					</div>
					<div id="treeDIV">
						<ul id="simpleTree" class="simpleTree">
						</ul>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>
